package org.example.fault.retry;


import org.example.model.RpcResponse;

import java.util.concurrent.Callable;

/**
 * @Title: RetryStrategy
 * @Author: kunliangzhao
 * @Package org.example.fault.retry
 * @Date: 2025/6/23 15:33
 * @Description: 重试策略
 */

public interface RetryStrategy {

    /**
     * 重试
     *
     * @param callable
     * @return
     * @throws Exception
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;
}
